package com.hzw.saas.service.workspace.pojo.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户工作实例表
 * </p>
 *
 * @author sonam
 * @since 2021-02-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_work_instance")
public class WorkInstance implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(type = IdType.INPUT)
    private String instId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 集群名称
     */
    private String cluster;

    /**
     * 任务arn
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String instTaskId;

    /**
     * Family
     */
    private String instTaskFamily;

    /**
     * 版本号
     */
    private Integer instTaskRevision;

    /**
     * 产品ID
     */
    private String productId;

    /**
     * 状态
     */
//    @TableLogic
    private Integer instStatus;

    /**
     * 开启时间
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date instStartTime;

    /**
     * 最后一次开启时间
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date instLastTime;

    /**
     * 创建时间
     */
    private Date instCreateTime;

}
